#pragma once
#include <afxwin.h>
class CButtonUI :
	public CButton
{
public:
	virtual void DrawItem(LPDRAWITEMSTRUCT /*lpDrawItemStruct*/);//绘制按钮
	CButtonUI(LPCTSTR lpNormal, LPCTSTR lpHover, LPCTSTR lpPush);//构造函数
private:
	HBITMAP m_hBitmapNormal;//正常状态
	HBITMAP m_hBitmapHover;//鼠标悬停
	HBITMAP m_hBitmapPush;//鼠标按下

	BOOL m_bPush;//鼠标按下
	BOOL m_bHover;//鼠标悬停
public:
	DECLARE_MESSAGE_MAP()
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	//	afx_msg void OnNcMouseLeave();
	afx_msg void OnMouseLeave();
	//	afx_msg void OnMouseHover(UINT nFlags, CPoint point);
};

